package com.gbdata.zuul.filter;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import java.util.HashSet;
import java.util.Set;
import org.springframework.stereotype.Component;

@Component
public class CustomFilter extends ZuulFilter {
    public Set<String> pathSet = new HashSet();

    public CustomFilter() {
    }

    @Override
    public String filterType() {
        return "route";
    }

    @Override
    public int filterOrder() {
        return 99;
    }

    @Override
    public boolean shouldFilter() {
        try {
            this.pathSet.add(RequestContext.getCurrentContext().getRequest().getRequestURI());
        } catch (Exception var2) {
            var2.printStackTrace();
        }

        return false;
    }

    @Override
    public Object run() {
        return null;
    }
}
